package br.com.spam.pipeline.instruction.r;

import java.util.Map;

import br.com.spam.pipeline.core.ControlSignal;
import br.com.spam.pipeline.core.Processor;
import br.com.spam.pipeline.instruction.Instruction;

public class NOP extends Instruction
{
	public static int ID = 0;
	public static int FUNCT = 0;
	public static final int ALUOpCode = 0;

	public NOP(Processor processor)
	{
		super("00000000000000000000000000000000		;NOP", processor);
	}

	@Override
	public String getInstructionAsString()
	{
		return this.name();
	}

	@Override
	public void generateControlSignals(Map<ControlSignal, Object> controlSignals)
	{
		controlSignals.put(ControlSignal.MemToReg, 0);
		controlSignals.put(ControlSignal.RegWrite, 0);
		controlSignals.put(ControlSignal.MemWrite, 0);
		controlSignals.put(ControlSignal.Branch, 0);
		controlSignals.put(ControlSignal.Jump, 0);
	}
}
